home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / MacTools / HyperStation / HyperStation / card_2426.txt < prev    next >
Encoding:
Text File  |  1988-03-21  |  4.2 KB  |  146 lines

  1. -- card: 2426 from stack: in
  2. -- bmap block id: 5489
  3. -- flags: 0000
  4. -- background id: 2662
  5. -- name: in box
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0007
  11. -- rect: left=101 top=54 right=199 bottom=468
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: Messages
  20. ----- HyperTalk script -----
  21. on mouseup
  22.  
  23. end mouseup
  24.  
  25.  
  26.  
  27. -- part 4 (field)
  28. -- low flags: 01
  29. -- high flags: 0000
  30. -- rect: left=154 top=12 right=39 bottom=362
  31. -- title width / last selected line: 0
  32. -- icon id / first selected line: 0 / 0
  33. -- text alignment: 1
  34. -- font id: 14
  35. -- text size: 18
  36. -- style flags: 768
  37. -- line height: 24
  38. -- part name: 
  39.  
  40.  
  41. -- part 7 (button)
  42. -- low flags: 00
  43. -- high flags: A000
  44. -- rect: left=321 top=295 right=342 bottom=402
  45. -- title width / last selected line: 0
  46. -- icon id / first selected line: 3766 / 3766
  47. -- text alignment: 1
  48. -- font id: 0
  49. -- text size: 12
  50. -- style flags: 0
  51. -- line height: 16
  52. -- part name: Erase Messages
  53. ----- HyperTalk script -----
  54. on mouseUp
  55.   put empty into card field "messages"
  56. end mouseUp
  57.  
  58.  
  59.  
  60. -- part 8 (field)
  61. -- low flags: 00
  62. -- high flags: 0007
  63. -- rect: left=101 top=209 right=282 bottom=468
  64. -- title width / last selected line: 0
  65. -- icon id / first selected line: 0 / 0
  66. -- text alignment: 0
  67. -- font id: 3
  68. -- text size: 9
  69. -- style flags: 0
  70. -- line height: 12
  71. -- part name: response
  72.  
  73.  
  74. -- part 9 (button)
  75. -- low flags: 00
  76. -- high flags: 8003
  77. -- rect: left=25 top=56 right=104 bottom=83
  78. -- title width / last selected line: 0
  79. -- icon id / first selected line: 263 / 263
  80. -- text alignment: 1
  81. -- font id: 0
  82. -- text size: 12
  83. -- style flags: 0
  84. -- line height: 16
  85. -- part name: About Inbox
  86. ----- HyperTalk script -----
  87. on mouseUp
  88.   show card field "about"
  89.   show card button "ok"
  90. end mouseUp
  91.  
  92.  
  93.  
  94. -- part 10 (field)
  95. -- low flags: 81
  96. -- high flags: 0004
  97. -- rect: left=101 top=52 right=252 bottom=439
  98. -- title width / last selected line: 0
  99. -- icon id / first selected line: 0 / 0
  100. -- text alignment: 0
  101. -- font id: 3
  102. -- text size: 12
  103. -- style flags: 256
  104. -- line height: 16
  105. -- part name: about
  106.  
  107.  
  108. -- part 11 (button)
  109. -- low flags: 80
  110. -- high flags: 8003
  111. -- rect: left=357 top=221 right=246 bottom=432
  112. -- title width / last selected line: 0
  113. -- icon id / first selected line: 0 / 0
  114. -- text alignment: 1
  115. -- font id: 0
  116. -- text size: 12
  117. -- style flags: 0
  118. -- line height: 16
  119. -- part name: OK
  120. ----- HyperTalk script -----
  121. on mouseUp
  122.   hide card button "ok"
  123.   hide card field "about"
  124. end mouseUp
  125.  
  126.  
  127.  
  128. -- part contents for card part 4
  129. ----- text -----
  130. Speedy In-Box
  131.  
  132. -- part contents for card part 8
  133. ----- text -----
  134. When loadseg changed the jump table entries from unloaded style to loaded style, it replaced the Loadseg instruction in the last six bytes with a direct, absolute address jump to the routine.  An absolute jump works, because once the segment is loaded, it's locked.  LoadSeg computes this address dynamically at the time it modifies the jump table entry by getting the newly loaded segment's handle, double de-referencing it, and adding it the offset to the desired routine, which it gets from the other 2 bytes in the jump table entry.  Figure 6-11 shows how this process works.
  135.  
  136. Note that when the jump table is in the loaded state the first two bytes are used to keep the segment number.  This is done so that later, when the segment is unloaded, the entry can be restored to its unloaded state (MOVE.W segnum, -(A7); LoadSeg).
  137.  
  138. A segment gets unloaded when the application calls UnloadSeg.  When you call UnloadSeg, the process of loading the segment us reversed.  First, UnloadSeg unlocks the segment.  Then it looks through the jump table for all entries for routines in this segment and changes each one to the unloaded state.  It does not change the purgeable status of the segment; since most segments are normally marked purgeable when they're created by the development system, unloaded segments may be purged.
  139.  
  140. -- part contents for card part 10
  141. ----- text -----
  142. The "Speedy In-Box" will display messages that are being sent to you in response to requests that you issued via the "Speedy Memo" card.  To clear out your in box, click on the "Erase Messages" icon.
  143.  
  144. Note that responses are limited to 4624 characters.  This is a fundamental limitation of the AppleTalk Transaction Protocol.
  145.  
  146.